<div id="slide_panel">
    <div id="slide">
        {{if isset($slide['new-item'])}}
        {{foreach $slide['new-item'] as $item}}
        {{if isset($category)}}{{$main_cat_code=$category->get_parent_category($item->category_id)}}
        {{$url='san-pham/'|cat:$main_cat_code->code|cat:'/'|cat:$category->get_title_category_id($item->category_id)->code|cat:'/'|cat:$item->code}}{{/if}}
        <div>
            <a href="{{$url|base_url}}"><img src="{{$item->new_image|base_url}}" alt="" /></a>
            <div class="pinfo">
                <h1>{{$item->title}}</h1>
                <p>{{$item->description|escape:"html"}}</p>
                <div class="price">{{if $item->old_price!=$item->new_price}}<span>{{$item->old_price|vnd_format:''}} VNĐ</span>{{/if}} {{$item->new_price|vnd_format:''}} VNĐ</div>
                <a href="{{$url|base_url}}"><img src="{{'data/templates/frontend/home/images/detail.jpg'|base_url}}" alt="Xem chi tiết" /></a>
            </div>
            {{if $item->old_price!=$item->new_price}}
            <div class="sale">
                <span>Giảm <abbr>{{saleprice old_price=$item->old_price new_price=$item->new_price}}%</abbr></span>
            </div>
            {{/if}}
        </div>
            {{/foreach}}
        {{/if}}
    </div>
    <div id="slide-nav"></div>
</div><!-- /Slider-->